
#ifndef MACROS_H_
#define MACROS_H_

#define ASSERT_TRUE(exp) \
do { \
	assert((exp) == true); \
} while(0)

#define ASSERT_FALSE(exp) \
do { \
	assert((exp) == false); \
} while(0)

#define ASSERT_NULL(exp) \
do { \
		assert((exp) == NULL); \
} while(0)

#define ASSERT_SUCCESS(exp) \
do { \
	assert((exp) != NULL); \
} while(0)

#define ASSERT_EQUAL(val1, val2) \
do { \
	assert((val1) == (val2)); \
} while(0)

#define ASSERT_NOT_EQUAL(val1, val2) \
do { \
	assert((val1) != (val2)); \
} while(0)

#endif